tools/libxl: move remus state into a seperate structure
authorWen Congyang <wency@cn.fujitsu.com>
Tue, 15 Dec 2015 05:59:52 +0000 (13:59 +0800)
committerWei Liu <wei.liu2@citrix.com>
Fri, 26 Feb 2016 15:14:47 +0000 (15:14 +0000)
commitbb3ef7efa4a5d0752de1d425872aa751a637d4eb
treee9d2cffc1bdc043dd568fdb07371740fb9c859cb
parentb203070184e7ffa5a30e5e88b196f5aa63abfd52
tools/libxl: move remus state into a seperate structure

Add a new structure remus state, and move concrete layer's private
member to remus state.
it is pure refactoring and no functional changes.
Init interval in libxl__remus_setup(). It is safe to move this initialisation,
because this value is only used for remus, and remus will use this value after
libxl__remus_setup().

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Yang Hongyang <hongyang.yang@easystack.cn>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_dom_save.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_netbuffer.c
tools/libxl/libxl_remus.c
tools/libxl/libxl_remus_disk_drbd.c